﻿CREATE TRIGGER tr_NameSpace_Insert
ON dbo.t_NameSpace
FOR INSERT
AS

EXEC sec__NameSpaces_Build

DECLARE @NameSpace DT_NameSpace
SELECT @NameSpace = dbo.NameSpaceParent(NameSpace) FROM inserted

EXEC sec__Menu_Groups_Propagate @NameSpace
